package com.itfreer.special.index;

import java.io.Serializable;
import com.itfreer.form.api.entity.EntityBase;
import com.itfreer.form.api.reflect.DictionaryField;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Transient;

/**
 * 定义目录实体
 */
@Entity(name = "special_index_column")
public class IndexClumnEntity extends EntityBase implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 唯一值
	 */
	@Id
	@Column(name = "id", length = 50, nullable = true)
	private String id;
	
	
	/**
	 * 拼音简称
	 */
	@Column(name = "s_abbreviation", length = 50, nullable = true)
	private String abbreviation;
	
	
	/**
	 * 代码值
	 */
	@Column(name = "s_code", length = 50, nullable = true)
	private String code;
	
	
	/**
	 * 类型
	 */
	@Column(name = "s_dictionary_type", length = 50, nullable = true)
	@DictionaryField(dictionaryName = "IndexColumnDictionaryType", toFieldName = "dictionarytypeName")
	private String dictionarytype;
	
	
	@Transient
	private String dictionarytypeName;
	
	/**
	 * 显示名称
	 */
	@Column(name = "s_display", length = 50, nullable = true)
	private String display;
	
	
	/**
	 * 备注
	 */
	@Column(name = "s_info", length = 50, nullable = true)
	private String info;
	
	
	 /**
	 * 是否为最后级别
	 */
	@Column(name = "b_leaf", nullable = true)
	private boolean leaf;
	/**
	 * 级别
	 */
	@Column(name = "i_level", nullable = true)
	private Integer level;
	
	/**
	 * 排序值
	 */
	@Column(name = "i_order", nullable = true)
	private Integer order;
	
	/**
	 * 上级ID
	 */
	@Column(name = "s_pid", length = 50, nullable = true)
	private String pid;
	
	
	/**
	 * 专题
	 */
	@Column(name = "s_specialid", length = 50, nullable = true)
	private String specialid;
	
	
	 /**
	 * 是否有效
	 */
	@Column(name = "b_valid", nullable = true)
	private boolean valid;





	/**
	 * 唯一值
	 */
	public String getId() {
		return id;
	}

	/**
	 * 唯一值
	 */
	public void setId(String value) {
		this.id = value;
	}
	
	
	/**
	 * 拼音简称
	 */
	public String getAbbreviation() {
		return abbreviation;
	}

	/**
	 * 拼音简称
	 */
	public void setAbbreviation(String value) {
		this.abbreviation = value;
	}
	
	
	/**
	 * 代码值
	 */
	public String getCode() {
		return code;
	}

	/**
	 * 代码值
	 */
	public void setCode(String value) {
		this.code = value;
	}
	
	
	/**
	 * 类型
	 */
	public String getDictionarytype() {
		return dictionarytype;
	}

	/**
	 * 类型
	 */
	public void setDictionarytype(String value) {
		this.dictionarytype = value;
	}
	
	/**
	 * 类型
	 */
	@Transient
	public String getDictionarytypeName() {
		return dictionarytypeName;
	}



	/**
	 * 类型
	 */
	public void setDictionarytypeName(String value) {
		this.dictionarytypeName = value;
	}
	
	
	/**
	 * 显示名称
	 */
	public String getDisplay() {
		return display;
	}

	/**
	 * 显示名称
	 */
	public void setDisplay(String value) {
		this.display = value;
	}
	
	
	/**
	 * 备注
	 */
	public String getInfo() {
		return info;
	}

	/**
	 * 备注
	 */
	public void setInfo(String value) {
		this.info = value;
	}
	
	
	/**
	 * 是否为最后级别
	 */
	public boolean getLeaf() {
		return leaf;
	}

	/**
	 * 是否为最后级别
	 */
	public void setLeaf(boolean value) {
		this.leaf = value;
	}
	/**
	 * 级别
	 */
	public Integer getLevel() {
		return level;
	}

	/**
	 * 级别
	 */
	public void setLevel(Integer value) {
		this.level = value;
	}
	/**
	 * 排序值
	 */
	public Integer getOrder() {
		return order;
	}

	/**
	 * 排序值
	 */
	public void setOrder(Integer value) {
		this.order = value;
	}
	/**
	 * 上级ID
	 */
	public String getPid() {
		return pid;
	}

	/**
	 * 上级ID
	 */
	public void setPid(String value) {
		this.pid = value;
	}
	
	
	/**
	 * 专题
	 */
	public String getSpecialid() {
		return specialid;
	}

	/**
	 * 专题
	 */
	public void setSpecialid(String value) {
		this.specialid = value;
	}
	
	
	/**
	 * 是否有效
	 */
	public boolean getValid() {
		return valid;
	}

	/**
	 * 是否有效
	 */
	public void setValid(boolean value) {
		this.valid = value;
	}




}
